package com.iot.http2.service;

import com.iot.http2.entity.DemoEntity;
import com.iot.http2.vo.DemoDTO;
import com.iot.http2.vo.DemoVO;

/**
 * 业务服务
 * @author guoguoqiang
 * @date 2020-11-26
 * @since 2020-11-26
 */
public interface BusinessService {
    /**
     * 演示hello
     * @param name name
     * @return String
     */
    String hello(String name);

    /**
     * 演示调用内部服务
     * @param name name
     * @return 调用内部服务结果
     */
    String callInner(String name);

    /**
     * 演示返回对象的mock
     * @param id id
     * @return DemoEntity
     */
    DemoEntity findById(Long id);

    /**
     * 演示静态工具调用
     * @param name name
     * @return String
     */
    String demoUtil(String name);

    /**
     * 2层调用链演示
     * @param dto dto
     * @return DemoVO
     */
    DemoVO callInner12(DemoDTO dto);

    String noMockMe(String name);
}
